home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 November / PCWorld_2006-11_cd.bin / domacnost a kancelar / opencontacts / ocusetup.exe / setup.exe / {code_GetDataFolder} / Templates / default.xsl < prev    next >
Extensible Markup Language  |  2006-10-03  |  2KB  |  87 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5. <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" />
  6.  
  7.   <xsl:template match="/">
  8.     <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  11. </head>
  12.  
  13.       <body>
  14.         <xsl:for-each select="OpenContacts/Contacts/Contact">
  15.  
  16.           <table border="0" width="100%" id="table2">
  17.             <tr>
  18.               <td width="80%">
  19.                 <font face="Times New Roman" size="3">
  20.                   <b>
  21.                     <xsl:value-of select="@Name"/>
  22.                   </b>
  23.                 </font>
  24.               </td>
  25.               <td>
  26.                 <xsl:value-of select="@Title"/>
  27.               </td>
  28.             </tr>
  29.           </table>
  30.           <div style="margin-left: 15px;">
  31.  
  32.             <font size="2" color="#800000">
  33.               <xsl:value-of select="Notes"/>
  34.             </font>
  35.  
  36.  
  37.           </div>
  38.           <xsl:for-each select="Sections/Section">
  39.             <div style="margin-left: 15px;">
  40.  
  41.  
  42.               <b>
  43.                 <font face="Times New Roman" size="2">
  44.                   <xsl:value-of select="@Name"/>
  45.                 </font>
  46.               </b>
  47.             </div>
  48.  
  49.  
  50.  
  51.             <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
  52.               <xsl:for-each select="Fields/Field">
  53.                 <tr>
  54.                   <td width="15"></td>
  55.                   <td width="80" bgcolor="#C3D9FF">
  56.                     <font face="Times New Roman" size="2">
  57.                       <xsl:value-of select="@Name"/>:
  58.                     </font>
  59.                   </td>
  60.                   <td bgcolor="#E0ECFF">
  61.                     <font size="3">
  62.                       <xsl:value-of select="@Value"/>
  63.                     </font>
  64.                   </td>
  65.                 </tr>
  66.               </xsl:for-each>
  67.  
  68.             </table>
  69.  
  70.             <div style="margin-left: 15px;">
  71.  
  72.               <font size="2" color="#800000">
  73.                 <xsl:value-of select="Notes"/>
  74.               </font>
  75.  
  76.  
  77.             </div>
  78.  
  79.           </xsl:for-each>
  80.  
  81.           <p>  </p>
  82.         </xsl:for-each>
  83.       </body>
  84.     </html>
  85.   </xsl:template>
  86.  
  87. </xsl:stylesheet>